home *** CD-ROM | disk | FTP | other *** search
- .SUFFIXES: .ttp .tos .prg .a .lib .o .c
-
- PCC = d:\pure_c
- PCL = $(PCC)\lib
- LIB = c:\usr\lib
-
- CCOM = $(PCC)\pcc.ttp
- LD = $(PCC)\plink.ttp
-
- SHELL = c:\usr\bin\tcsh.ttp -DFAST=true
-
- # avoid the tcsh.rc changing the current working directory
- # mintshel doesn't work because linker gets wrong commandline
-
- TMPDIR = d:\tmp
-
- PCFLAGS = -I. -Ic:\usr\include
- LDLST = $(TMPDIR)\libs.lst
- LDFILE = -C=$(LDLST)
- STDLIB = $(LIB)\mintlib.lib
- LDLIBS = $(LIB)\crt0.o $*.o $($@) $($*) $(LDFLAGS) $(STDLIB)
- COMPILE = $(CCOM) $(PCFLAGS) $(CFLAGS) $(CPPFLAGS) $<
- LINK = echo -O=$*.ttp $(LDLIBS) >$(LDLST)
- CC = .c.ttp
- # redefine orginal make definition for CC
-
- .c .c.ttp:
- $(COMPILE)
- $(LINK)
- $(LD) $(LDFILE)
-
- .c.o:
- $(COMPILE)
-
- .o .o.ttp:
- $(LINK)
- $(LD) $(LDFILE)
-
- CPPFLAGS = -D__MINT__ # -D__DEBUG__
- CFLAGS = -P -DPROGNAME='"CROND"'
-
- crond = crond.o command.o misc.o debug.o
- crontab = crontab.o misc.o
- at = at.o misc.o
-
- all: at.ttp crond.ttp crontab.ttp
-
- $(crond) : cron.h
- $(crontab) : cron.h
- $(at) : cron.h
-
- crond.ttp: $(crond)
- echo -O=$@ $(LDLIBS) >$(LDLST)
- $(LD) $(LDFILE)
-
- crontab.ttp: $(crontab)
- echo -O=$@ $(LDLIBS) $(UXLIB) >$(LDLST)
- $(LD) $(LDFILE)
-
- at.ttp: $(at)
- echo -O=$@ $(LDLIBS) $(UXLIB) >$(LDLST)
- $(LD) $(LDFILE)
-
- clean:
- rm -f *.o
-
- veryclean:
- rm -f *.o *.ttp
-